package gateway.mgt

import grails.validation.Validateable
import groovy.transform.ToString

@ToString(includePackage = false)
class Heartbeat implements Validateable {

    String coreName
    String serviceId
    Boolean registered
    Date dateSent
    Date dateReceived = new Date()

    static constraints = {
        coreName(blank: false)
        serviceId(blank: false)
        registered(nullable: false)
        dateSent(nullable: false)
        dateReceived(nullable: false)
    }
}
